package com.cqeec.demo2.demos.demo;

public class TeatMain2 extends Thread {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        for (int i = 0; i < 5; i++) {

        }
        t1.start();
        System.out.println(Thread.currentThread().getName());
        new Thread(()->

        {
            for (int i = 0; i < 5; i++) {
                System.out.println(Thread.currentThread().getName() + i);
            }
        }).start();
    }


}
